function getJsonData(path) {
	return new Promise(resolve => { 
		plus.io.resolveLocalFileSystemURL( path, function( entry ) {
			console.log("entry", entry);
				entry.file( function(file){
					console.log("file", file);
					let fileReader = new plus.io.FileReader();
					fileReader.readAsText(file);
					fileReader.onerror = e => {
						console.log("获取文件失败", fileReader.error);
						plus.nativeUI.toast("获取文件失败,请重启应用", {
							background: "#ffa38c",
						});
						return;
					};
					fileReader.onload = e => {
						console.log("读取文件成功");
						let txtData = e.target.result;
						resolve(txtData);
					};
				} );
			}, function ( e ) {
				console.log("读取文件失败", e);
			});
	});
};
export {
	getJsonData,
};